package com.dinpay.plugin.activity;

import android.os.Handler;
import com.dinpay.plugin.d.c;
import com.dinpay.plugin.d.f;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

final class k
  implements Runnable
{
  k(DinpayChannelActivity paramDinpayChannelActivity)
  {
  }

  public final void run()
  {
    int i = 1;
    while (true)
    {
      try
      {
        HashMap localHashMap = new HashMap();
        localHashMap.put("service_type", c.f);
        localHashMap.put("signature", this.a.a(DinpayChannelActivity.b(this.a)));
        localHashMap.put("notify_url", this.a.b.b());
        localHashMap.put("order_no", this.a.b.f());
        localHashMap.put("order_time", this.a.b.g());
        localHashMap.put("product_name", this.a.b.i());
        String str1 = this.a.b.n();
        if ((str1 != null) && (str1.length() != 0))
        {
          if (!str1.equals("null"))
            break label544;
          break label514;
          if (j == 0)
            localHashMap.put("redo_flag", str1);
          String str2 = this.a.b.k();
          if ((str2 == null) || (str2.length() == 0))
            break label520;
          if (!str2.equals("null"))
            break label550;
          break label520;
          if (k == 0)
            localHashMap.put("product_code", str2);
          String str3 = this.a.b.l();
          if ((str3 == null) || (str3.length() == 0))
            break label526;
          if (!str3.equals("null"))
            break label556;
          break label526;
          if (m == 0)
            localHashMap.put("product_num", str3);
          String str4 = this.a.b.m();
          if ((str4 == null) || (str4.length() == 0))
            break label532;
          if (!str4.equals("null"))
            break label562;
          break label532;
          if (n == 0)
            localHashMap.put("product_desc", str4);
          String str5 = this.a.b.j();
          if ((str5 == null) || (str5.length() == 0))
            break label538;
          if (!str5.equals("null"))
            break label568;
          break label538;
          if (i1 == 0)
            localHashMap.put("extra_return_param", str5);
          String str6 = this.a.b.o();
          if ((str6 != null) && (str6.length() != 0) && (!str6.equals("null")))
            break label574;
          if (i == 0)
            localHashMap.put("extend_param", str6);
          InputStream localInputStream = com.dinpay.plugin.d.d.a(c.d, localHashMap, "utf-8");
          if (localInputStream != null)
          {
            DinpayChannelActivity.a(this.a, f.a(localInputStream));
            DinpayChannelActivity.c(this.a).sendEmptyMessage(1);
            return;
          }
          DinpayChannelActivity.c(this.a).sendEmptyMessage(0);
          return;
        }
      }
      catch (Exception localException)
      {
        localException.printStackTrace();
        DinpayChannelActivity.c(this.a).sendEmptyMessage(0);
        return;
      }
      label514: int j = i;
      continue;
      label520: int k = i;
      continue;
      label526: int m = i;
      continue;
      label532: int n = i;
      continue;
      label538: int i1 = i;
      continue;
      label544: j = 0;
      continue;
      label550: k = 0;
      continue;
      label556: m = 0;
      continue;
      label562: n = 0;
      continue;
      label568: i1 = 0;
      continue;
      label574: i = 0;
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.dinpay.plugin.activity.k
 * JD-Core Version:    0.6.2
 */